public class Text {
    public static void main(String[] args) {
        BinatyTree tree = new BinatyTree();
        tree.createTree();
        tree.preOrder(tree.root);
        System.out.println(tree.size(tree.root));
        System.out.println(tree.getLeafNodeCount(tree.root));
        System.out.println(tree.getKLevelNodeCount(tree.root, 2));
        System.out.println(tree.getHeight(tree.root));
        System.out.println(tree.find(tree.root, 'D'));
        System.out.println(tree.levelOrder(tree.root));;
    }
}
